package com.emm.yixun.common.model.enums;

import org.apache.commons.lang.StringUtils;

public enum ValuationTypeEnum {
	
	ValuationTypeEnum_1("1","建筑面积"),
	ValuationTypeEnum_2("2","套内面积"),
	ValuationTypeEnum_3("3","套(别墅/排屋)"),
	ValuationTypeEnum_4("4","车位");
	private String no;
	private String name;
	
	
	private ValuationTypeEnum() {
	}


	private ValuationTypeEnum(String no, String name) {
		this.no = no;
		this.name = name;
	}


	public String getNo() {
		return no;
	}


	public void setNo(String no) {
		this.no = no;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public static ValuationTypeEnum getByNo(String no) {
		if(StringUtils.isBlank(no)){
			return null;
		}
		for (ValuationTypeEnum menum : values()) {
			if (menum.getNo().equals(no)) {
				return menum;
			}
		}
		return null;
	}
	
}
